package io;

import java.io.*;

public class CopyDemo3 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("./file/image.jpg"),1024*10);
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("./file/image_cp3.jpg"),1024*10);
        int d;
        while ((d = bis.read())!=-1){
            bos.write(d);
        }

        bis.close();
        bos.close();


    }
}
